<template>
  <div class="panel main pd20 ">
    <div class="msg">Hi,Admin.你已经是我们的正式会员了</div>
    <div class="layui-row layui-col-space20">
      <div class="layui-col-md6">
        <div class="panel border">
          <div class="title">我的会员信息</div>
          <div class="content">
            <p>积分经验值：<cite>60</cite></p>
            <p>你当前为：<cite>非VIP</cite></p>
          </div>
        </div>
      </div>
      <div class="layui-col-md6">
        <sign class="border"></sign>
      </div>
      <div class="layui-col-md12 mt20">
        <div class="panel border">
          <div class="title">快捷方式</div>
          <div class="content" style="height:auto">
            <ul class="layui-row layui-col-space10">
              <li class="layui-col-sm3 layui-col-xs4" v-for="(val,key) in lists" :key="'center'+key">
                <router-link :to="{name:val.link}">
                  <div class="layui-icon shortcut" :class="val.icon"></div>
                  <span class="">{{val.name}}</span>
                </router-link>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Sign from '@/components/siderbar/Sign'
export default {
  name: 'user-center',
  data () {
    return {
      lists: [
        {
          name: '修改信息',
          icon: 'layui-icon-set',
          link: 'info'
        },
        {
          name: '修改头像',
          icon: 'layui-icon-face-smile-fine',
          link: 'pic'
        },
        {
          name: '修改密码',
          icon: 'layui-icon-set',
          link: 'passwd'
        },
        {
          name: '账号绑定',
          icon: 'layui-icon-app',
          link: 'accounts'
        },
        {
          name: '发表新帖',
          icon: 'layui-icon-add-circle',
          link: ''
        },
        {
          name: '查看分享',
          icon: 'layui-icon-share',
          link: ''
        },
        {
          name: '我的帖子',
          icon: 'layui-icon-username',
          link: 'mypost'
        },
        {
          name: '我的收藏',
          icon: 'layui-icon-rate-solid',
          link: 'mycollection'
        },
        {
          name: '其他资料',
          icon: 'layui-icon-template-1',
          link: ''
        },
        {
          name: '关注公众号',
          icon: 'layui-icon-login-wechat',
          link: ''
        },
        {
          name: '文档',
          icon: 'layui-icon-read',
          link: ''
        },
        {
          name: '后台管理',
          icon: 'layui-icon-user',
          link: ''
        }
      ]
    }
  },
  components: {
    Sign
  }

}
</script>

<style lang='scss' scoped>
.panel {
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  &.main {
    margin: 0 0 0 225px;
    .content {
      cite {
        font-weight: 500;
        color: red;
        font-style: normal;
      }
    }
  }
}
.msg {
  background-color: #f8f8f8;
  color: #666;
  padding: 10px 15px;
}
.border {
  border: 1px solid #e6e6e6;
}
.pd20 {
  padding: 20px;
}
.mt20 {
  margin-top: -20px;
}
.title {
  height: 50px;
  line-height: 50px;
  border-bottom: 1px dotted #e9e9e9;
  font-size: 14px;
  padding-left: 15px;
}
.content {
  padding: 18px 15px;
  height: 50px;
  line-height: 25px;
  font-size: 14px;
  color: #666;
}
li {
  text-align: center;
  padding: 5px;
}
.shortcut {
  background-color: #2f9688;
  width: 100;
  height: 60px;
  line-height: 60px;
  text-align: center;
  color: #fff;
  border-radius: 2px;
  font-size: 36px;
}
@media screen and(max-width: 768px) {
  .panel {
    &.main {
      margin: 0;
    }
  }
}
</style>
